package message;

import java.io.Serializable;

@SuppressWarnings("serial")
public class message implements Serializable {

String str = "";
boolean token = false;
int  size = 7;
String sender = "";

int[] cardsNUM;

String username = "";
String password = "";
public int flag = -1;//0 for login; 1 for sign up

public boolean playing = true;// whether the message is for room game

// set the sender of the message
  public void setSender(String sender) {
    this.sender = sender;
  }
 //get the sender of the message
  public String getSender() {
    return sender;
  }
  //set whether the player can play card
  public void setToken(boolean token) {
    this.token = token;
  }
  //get whether the player can play card
  public boolean getToken() {
    return token;
  }
  //set number of cards player have 
  public void setSize(int size) {
    this.size = size;
  }
  //get number of cards player have 
  public int getSize() {
    return size;
  }
  //set card information
  public void setString(String str) {
    this.str = str;
  }
  //get card information
  public String getString() {
    return str;
  }
public String getUsername() {
	return username;
}
public void setUsername(String username) {
	this.username = username;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public int getFlag() {
	return flag;
}
public void setFlag(int flag) {
	this.flag = flag;
}
public boolean isPlaying() {
	return playing;
}
public void setPlaying(boolean playing) {
	this.playing = playing;
}
public void setcardsNUM(int[] cardsNum){
	cardsNUM=cardsNum;
}
public int[] getcardsNUM(){
	return cardsNUM;
}
}